<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/materials/elastic_solid.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_536e372c8df10cac250269553cb892e1.html">materials</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">elastic_solid.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="elastic__solid_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="base__material_8h.html">base_material.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">//----------------------------------------------------------------------</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="comment">//      preclaimed classes</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//----------------------------------------------------------------------</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">class </span>ElasticSolidParticles;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid.html">   47</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_solid.html">Solid</a></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        Real eta_0_;        <span class="comment">/*&gt; physical viscosity */</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        Real c_0_;          <span class="comment">/*&gt; speed of sound */</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        Real lambda_0_;     <span class="comment">/*&gt; First Lame parameter */</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a>* elastic_particles_;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setSoundSpeed() = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLambda() = 0;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keywordtype">void</span> setContactStiffness() { <a class="code" href="class_s_p_h_1_1_solid.html#accf36ec8b84a813cb59f2d26bde11321">contact_stiffness_</a> = c_0_* c_0_; };</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>() : </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <a class="code" href="class_s_p_h_1_1_solid.html">Solid</a>(), eta_0_(0.0), c_0_(1.0), lambda_0_(0.375), elastic_particles_(NULL) {};</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>() {};</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> assignElasticSolidParticles(<a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a>* elastic_particles);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        Real ReferenceSoundSpeed() { <span class="keywordflow">return</span> c_0_; };</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        Real PhysicalViscosity() { <span class="keywordflow">return</span> eta_0_; };</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keyword">virtual</span> Real ViscousTimeStepSize(Real smoothing_length);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keyword">virtual</span> Real NumericalViscosity(Real smoothing_length);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_elastic_solid.html#a770dc2eaf418dd5b71492c0111659eb3">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) = 0;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_elastic_solid.html#aba7110f07a4e3763d39de170b4cd4815">NumericalDampingStress</a>(Matd&amp; deform_grad, </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            Matd&amp; deform_grad_rate, Real numerical_viscosity, <span class="keywordtype">size_t</span> particle_index_i);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keyword">virtual</span> Real YoungsModulus() = 0;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">virtual</span> Real PoissonRatio() = 0;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>* ThisObjectPtr()<span class="keyword"> override </span>{<span class="keywordflow">return</span> <span class="keyword">this</span>;};</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    };</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_linear_elastic_solid.html">   84</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        Real E_0_;  <span class="comment">/*&gt; Youngs modulus */</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        Real nu_;   <span class="comment">/*&gt; poisson ratio */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        Real G_0_;  <span class="comment">/*&gt;Second Lame parameter, shear modulus. Derived material property. */</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setSoundSpeed() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setShearModulus();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLambda() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> assignDerivedMaterialParameters() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a>() : <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>(),</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            E_0_(1.0), nu_(1.0 / 3.0), G_0_(0.75) {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            material_name_ = <span class="stringliteral">&quot;LinearElasticSolid&quot;</span>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        };</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a>() {};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html#ab4243ab3dfd21ad6f2b5984cb2a1e0dd">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <span class="keyword">virtual</span> Real YoungsModulus()<span class="keyword"> override </span>{ <span class="keywordflow">return</span> E_0_; };</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keyword">virtual</span> Real PoissonRatio()<span class="keyword">  override </span>{ <span class="keywordflow">return</span> nu_; };</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    };</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_neo_hookean_solid.html">  111</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_neo_hookean_solid.html">NeoHookeanSolid</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <a class="code" href="class_s_p_h_1_1_neo_hookean_solid.html">NeoHookeanSolid</a>() : <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a>() {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            material_name_ = <span class="stringliteral">&quot;NeoHookeanSolid&quot;</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        };</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_neo_hookean_solid.html">NeoHookeanSolid</a>() {};</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    </div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_neo_hookean_solid.html#a7a910afcc1909a73f7069356f8888ddd">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    };</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_fene_neo_hookean_solid.html">  126</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html">FeneNeoHookeanSolid</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a83218f7184a423dfbb4e537a67f1bcb2">  129</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a83218f7184a423dfbb4e537a67f1bcb2">j1_m_</a>; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html">FeneNeoHookeanSolid</a>() : <a class="code" href="class_s_p_h_1_1_linear_elastic_solid.html">LinearElasticSolid</a>(), <a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a83218f7184a423dfbb4e537a67f1bcb2">j1_m_</a>(1.0) {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            material_name_ = <span class="stringliteral">&quot;FeneNeoHookeanSolid&quot;</span>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        };</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html">FeneNeoHookeanSolid</a>() {};</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a2f05bdb6aed0477710bff514d4804e25">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    };</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_muscle.html">  142</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_muscle.html">Muscle</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_muscle.html#aac40311b87bc828c9e3fc261582bcb82">  145</a></span>&#160;        Vecd f0_, <a class="code" href="class_s_p_h_1_1_muscle.html#aac40311b87bc828c9e3fc261582bcb82">s0_</a>;              </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_muscle.html#ad2af528a9b76f4fd116b8170bee24619">  146</a></span>&#160;        Matd f0f0_, s0s0_, <a class="code" href="class_s_p_h_1_1_muscle.html#ad2af528a9b76f4fd116b8170bee24619">f0s0_</a>;   </div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_muscle.html#a0f83fc51f6e53d0ce8ac99c35269036c">  147</a></span>&#160;        Real a_0_[4], <a class="code" href="class_s_p_h_1_1_muscle.html#a0f83fc51f6e53d0ce8ac99c35269036c">b_0_</a>[4];      </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_muscle.html#a7ebf079d70936900e45910680fa1f34f">  148</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_muscle.html#a7ebf079d70936900e45910680fa1f34f">bulk_modulus_</a>;         </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setSoundSpeed() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLambda() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> assignDerivedMaterialParameters() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <a class="code" href="class_s_p_h_1_1_muscle.html">Muscle</a>() : <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>(),</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            f0_(0), <a class="code" href="class_s_p_h_1_1_muscle.html#aac40311b87bc828c9e3fc261582bcb82">s0_</a>(0), f0f0_(0), s0s0_(0), <a class="code" href="class_s_p_h_1_1_muscle.html#ad2af528a9b76f4fd116b8170bee24619">f0s0_</a>(0),</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            a_0_{1.0, 0.0, 0.0, 0.0 }, <a class="code" href="class_s_p_h_1_1_muscle.html#a0f83fc51f6e53d0ce8ac99c35269036c">b_0_</a>{1.0, 0.0, 0.0, 0.0 }, <a class="code" href="class_s_p_h_1_1_muscle.html#a7ebf079d70936900e45910680fa1f34f">bulk_modulus_</a>(30.0) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            material_name_ = <span class="stringliteral">&quot;Muscle&quot;</span>;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        };</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <span class="keyword">virtual</span> ~Muscle() {};</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keyword">virtual</span> Matd MuscleFiberDirection(<span class="keywordtype">size_t</span> particle_index_i) { <span class="keywordflow">return</span> f0f0_; };</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_muscle.html#a7e5d6cea500e19558b474ed9b7aaee51">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_real.html">Real</a> YoungsModulus() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_real.html">Real</a> PoissonRatio()  <span class="keyword">override</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keyword">virtual</span> Muscle* ThisObjectPtr()<span class="keyword"> override </span>{<span class="keywordflow">return</span> <span class="keyword">this</span>;};</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    };</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_locally_orthotropic_muscle.html">  178</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html">LocallyOrthotropicMuscle</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_muscle.html">Muscle</a></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#ad30a69af1b0f80601982eba9e29d3d10">  181</a></span>&#160;        StdLargeVec&lt;Matd&gt; local_f0f0_, local_s0s0_, <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#ad30a69af1b0f80601982eba9e29d3d10">local_f0s0_</a>;            </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> assignDerivedMaterialParameters()<span class="keyword"> override </span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keyword">        </span>{</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            Muscle::assignDerivedMaterialParameters();</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        };</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a80f9fdcb0a24632bc5b4653fb1622243">initializeFiberAndSheet</a>();</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a0d708d3647909b6f67229d4296d6a0ee">  189</a></span>&#160;        StdLargeVec&lt;Vecd&gt; <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a0d708d3647909b6f67229d4296d6a0ee">local_f0_</a>; </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a5f657cc0db49e5d0b87bee59910deca0">  190</a></span>&#160;        StdLargeVec&lt;Vecd&gt; <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a5f657cc0db49e5d0b87bee59910deca0">local_s0_</a>; </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html">LocallyOrthotropicMuscle</a>() : <a class="code" href="class_s_p_h_1_1_muscle.html">Muscle</a>()</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        {</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;            material_name_ = <span class="stringliteral">&quot;LocallyOrthotropicMuscle&quot;</span>;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            parameters_name_ = <span class="stringliteral">&quot;LocalFiberAndSheet&quot;</span>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        };</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html">LocallyOrthotropicMuscle</a>() {};</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> assignElasticSolidParticles(ElasticSolidParticles* elastic_particles) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <span class="keyword">virtual</span> Matd MuscleFiberDirection(<span class="keywordtype">size_t</span> particle_index_i)<span class="keyword"> override </span>{ <span class="keywordflow">return</span> local_f0f0_[particle_index_i]; };</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keyword">virtual</span> Matd <a class="code" href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a399e6d37a7c00f25c4a2946e1dd0d757">ConstitutiveRelation</a>(Matd&amp; deform_grad, <span class="keywordtype">size_t</span> particle_index_i) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> readFromXmlForLocalParameters(std::string &amp;filefullpath) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    };</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html_ad30a69af1b0f80601982eba9e29d3d10"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html#ad30a69af1b0f80601982eba9e29d3d10">SPH::LocallyOrthotropicMuscle::local_f0s0_</a></div><div class="ttdeci">StdLargeVec&lt; Matd &gt; local_f0s0_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:181</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_fene_neo_hookean_solid_html_a83218f7184a423dfbb4e537a67f1bcb2"><div class="ttname"><a href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a83218f7184a423dfbb4e537a67f1bcb2">SPH::FeneNeoHookeanSolid::j1_m_</a></div><div class="ttdeci">Real j1_m_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:129</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_linear_elastic_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_linear_elastic_solid.html">SPH::LinearElasticSolid</a></div><div class="ttdoc">Isotropic linear elastic solid.</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:84</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html_a80f9fdcb0a24632bc5b4653fb1622243"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a80f9fdcb0a24632bc5b4653fb1622243">SPH::LocallyOrthotropicMuscle::initializeFiberAndSheet</a></div><div class="ttdeci">void initializeFiberAndSheet()</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:163</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html">SPH::Muscle</a></div><div class="ttdoc">Globally orthotropic muscle.</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:142</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_solid_html_accf36ec8b84a813cb59f2d26bde11321"><div class="ttname"><a href="class_s_p_h_1_1_solid.html#accf36ec8b84a813cb59f2d26bde11321">SPH::Solid::contact_stiffness_</a></div><div class="ttdeci">Real contact_stiffness_</div><div class="ttdef"><b>Definition:</b> base_material.h:204</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_elastic_solid_particles_html"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particles.html">SPH::ElasticSolidParticles</a></div><div class="ttdoc">A group of particles with elastic body particle data.</div><div class="ttdef"><b>Definition:</b> solid_particles.h:84</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_linear_elastic_solid_html_ab4243ab3dfd21ad6f2b5984cb2a1e0dd"><div class="ttname"><a href="class_s_p_h_1_1_linear_elastic_solid.html#ab4243ab3dfd21ad6f2b5984cb2a1e0dd">SPH::LinearElasticSolid::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i) override</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:48</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html_a399e6d37a7c00f25c4a2946e1dd0d757"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a399e6d37a7c00f25c4a2946e1dd0d757">SPH::LocallyOrthotropicMuscle::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i) override</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:140</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_solid.html">SPH::Solid</a></div><div class="ttdoc">Base class of all solid materials.</div><div class="ttdef"><b>Definition:</b> base_material.h:187</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html">SPH::LocallyOrthotropicMuscle</a></div><div class="ttdoc">muscle model is a anisotropic material in which there are local fiber direction and cross-fiber sheet...</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:178</div></div>
<div class="ttc" id="abase__material_8h_html"><div class="ttname"><a href="base__material_8h.html">base_material.h</a></div><div class="ttdoc">This is the base classes of all materials. A function in a derived material class returns a value wit...</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_fene_neo_hookean_solid_html_a2f05bdb6aed0477710bff514d4804e25"><div class="ttname"><a href="class_s_p_h_1_1_fene_neo_hookean_solid.html#a2f05bdb6aed0477710bff514d4804e25">SPH::FeneNeoHookeanSolid::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i) override</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:79</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_elastic_solid_html_a770dc2eaf418dd5b71492c0111659eb3"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid.html#a770dc2eaf418dd5b71492c0111659eb3">SPH::ElasticSolid::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i)=0</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_neo_hookean_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_neo_hookean_solid.html">SPH::NeoHookeanSolid</a></div><div class="ttdoc">Neo-Hookean solid.</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:111</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html_a7e5d6cea500e19558b474ed9b7aaee51"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html#a7e5d6cea500e19558b474ed9b7aaee51">SPH::Muscle::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i) override</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:113</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_elastic_solid_html_aba7110f07a4e3763d39de170b4cd4815"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid.html#aba7110f07a4e3763d39de170b4cd4815">SPH::ElasticSolid::NumericalDampingStress</a></div><div class="ttdeci">virtual Matd NumericalDampingStress(Matd &amp;deform_grad, Matd &amp;deform_grad_rate, Real numerical_viscosity, size_t particle_index_i)</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:24</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html_a0f83fc51f6e53d0ce8ac99c35269036c"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html#a0f83fc51f6e53d0ce8ac99c35269036c">SPH::Muscle::b_0_</a></div><div class="ttdeci">Real b_0_[4]</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:147</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_fene_neo_hookean_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_fene_neo_hookean_solid.html">SPH::FeneNeoHookeanSolid</a></div><div class="ttdoc">Neo-Hookean solid with finite extension.</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:126</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html_a5f657cc0db49e5d0b87bee59910deca0"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a5f657cc0db49e5d0b87bee59910deca0">SPH::LocallyOrthotropicMuscle::local_s0_</a></div><div class="ttdeci">StdLargeVec&lt; Vecd &gt; local_s0_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:190</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html_ad2af528a9b76f4fd116b8170bee24619"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html#ad2af528a9b76f4fd116b8170bee24619">SPH::Muscle::f0s0_</a></div><div class="ttdeci">Matd f0s0_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:146</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_neo_hookean_solid_html_a7a910afcc1909a73f7069356f8888ddd"><div class="ttname"><a href="class_s_p_h_1_1_neo_hookean_solid.html#a7a910afcc1909a73f7069356f8888ddd">SPH::NeoHookeanSolid::ConstitutiveRelation</a></div><div class="ttdeci">virtual Matd ConstitutiveRelation(Matd &amp;deform_grad, size_t particle_index_i) override</div><div class="ttdef"><b>Definition:</b> elastic_solid.cpp:71</div></div>
<div class="ttc" id="aclass_real_html"><div class="ttname"><a href="class_real.html">Real</a></div></div>
<div class="ttc" id="anamespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> solid_body_supplementary.cpp:9</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_elastic_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid.html">SPH::ElasticSolid</a></div><div class="ttdoc">Abstract class for a generalized elastic solid.</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:47</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html_aac40311b87bc828c9e3fc261582bcb82"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html#aac40311b87bc828c9e3fc261582bcb82">SPH::Muscle::s0_</a></div><div class="ttdeci">Vecd s0_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:145</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_locally_orthotropic_muscle_html_a0d708d3647909b6f67229d4296d6a0ee"><div class="ttname"><a href="class_s_p_h_1_1_locally_orthotropic_muscle.html#a0d708d3647909b6f67229d4296d6a0ee">SPH::LocallyOrthotropicMuscle::local_f0_</a></div><div class="ttdeci">StdLargeVec&lt; Vecd &gt; local_f0_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:189</div></div>
<div class="ttc" id="aclass_s_p_h_1_1_muscle_html_a7ebf079d70936900e45910680fa1f34f"><div class="ttname"><a href="class_s_p_h_1_1_muscle.html#a7ebf079d70936900e45910680fa1f34f">SPH::Muscle::bulk_modulus_</a></div><div class="ttdeci">Real bulk_modulus_</div><div class="ttdef"><b>Definition:</b> elastic_solid.h:148</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
